package com.ucode.model.cgms.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Schema(description = "陪玩俱乐部社区系统 - 审核Form")
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
public class CgmsAuditForm {

    @Schema(description = "编号集合", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编号集合不能为空")
    @Size(min = 1 ,max = 20,message = "编号集合最大长度 20 ")
    private List<Long> ids;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "备注不能为空")
    @Size(max = 255,message = "备注最大长度 255 个字符")
    private String remark;

    @Schema(description = "审核状态", requiredMode = Schema.RequiredMode.REQUIRED,allowableValues = {"2","3","4","5"})
    @NotNull(message = "审核状态不能为空")
    @Range(min = 2,max = 5,message = "审核状态范围在2 - 5之间")
    private Integer statuz;
    
}

